package com.vil.mapper;

import com.vil.common.ServerResponse;
import com.vil.entity.Charge;
import com.vil.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record)throws  Exception;

    int insertSelective(User record)throws  Exception;

    User selectByPrimaryKey(Long id)throws  Exception;

    int updateByPrimaryKeySelective(User record)throws  Exception;

    int updateByPrimaryKey(User record)throws  Exception;

    List<User> getListByManyConditions(User recode)throws  Exception;
    //批量删除
    int deleteMany(Long[] array)throws  Exception;

}